package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class Member {

    public static final int STATE_NORMAL = 0;   //正常
    public static final int STATE_DROP = 1;     //挂失
    public static final int STATE_ABANDON= 2;   //废弃

    private Long id;

    private String memberNumber;

    private String memberName;

    private String password;

    private int sex;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputDate;

    private Employee input;

    private String remark;

    private int label;

    private int state;

    private String tel;

    private String qq;

    private String weChat;

    private String address;

    private String email;

    private DataDictionaryItem grade;

    private DataDictionaryItem group;

    private BigDecimal balance = new BigDecimal(0);

    private BigDecimal integral = new BigDecimal(0);

    private BigDecimal totalConsume = new BigDecimal(0);

}